CC:=arm-linux-gnueabihf-gcc
KERNELDIR := /home/wxy/linux/IMX6ULL/linux/wxy_linux_kernel1/linux

CURRENT_PATH := $(shell pwd)
obj-m := leddevice.o leddriver.o

target:all
all:build platledApp
build: kernel_modules

platledApp: platledApp.c
	$(CC) platledApp.c -o platledApp  -g
kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules
clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean

